package com.mes.biz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.annotation.Excel;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import com.mes.common.utils.log.annotation.LogField;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 配件信息
 * @author hwg
 * @email hwg
 * @date 2023-03-27
 */
@Data
public class BizOrderAccessory extends BaseEntity<BizOrderAccessory>
{
    private static final long serialVersionUID = 1L;

    private String orderId;

    private String fileList;

    private String tenantId;

    private String accessoryNumber;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    @LogField
    @FieldRemark(name = "单据日期",field = "accessoryDate")
    private Date accessoryDate;

    /** 地址 */
    @Excel(name = "地址")
    @LogField
    @FieldRemark(name = "地址",field = "address")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    @LogField
    @FieldRemark(name = "电话",field = "phone")
    private String phone;

    @NotBlank(message = "状态（0未引用 1已引用）不允许为空")
    @LogField
    @FieldRemark(name = "状态",field = "status")
    private String status;
}
